import request from "@/utils/request";

export function listMerchant(query) {
  return request({
    url: '/shopee/merchant/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getMerchant(id) {
  return request({
    url: '/shopee/merchant/' + id,
    method: 'get'
  })
}

// 修改
export function updateMerchant(data) {
  return request({
    url: '/shopee/merchant',
    method: 'put',
    data: data
  })
}

export function listAllMerchant() {
  return request({
    url: '/shopee/merchant/listAll',
    method: 'get'
  })
}






